﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SiGeSIB.Data.Security;

namespace SiGeSIB.GUI.Security
{
	public partial class FEditConnectionContainer : Form
	{
		protected ConnectionSchema _Schema;

		public FEditConnectionContainer()
			: this(null) { }
		public FEditConnectionContainer(ConnectionSchema schema)
		{
			_Schema = schema;
			InitializeComponent();
			uEditConnection1.RequestClose += new EventHandler<EventArgs<DialogResult>>(uEditConnection1_RequestClose);
		}

		void uEditConnection1_RequestClose(object sender, EventArgs<DialogResult> e)
		{
			this.DialogResult = e.Args;
			this.Close();
		}

		public ConnectionSchema EditedItem { get { return uEditConnection1.EditedItem; } }
	}
}
